# -*- coding: utf-8 -*-
'''
Created on 2010-5-19

@author: Jason
'''
from django import forms
from moral.models import *


class LoginForm(forms.ModelForm):
    username=forms.CharField()
    password=forms.CharField()
    

class ChangeMoralForm(forms.ModelForm):
    date = forms.DateField(label=u'日期')
    reason = forms.CharField(label=u'原因')
    mark = forms.FloatField(label=u'分数')
    remark = forms.CharField(required=False,label=u'备注')  
    
    class Meta:
        model=Moral_Log
        exclude=['student','type','operator','addtime']
        #        fields=['date','reason']
#        label_tags={
#                'id_date':u'日期'
#                }

class ChangeBanfeiForm(forms.ModelForm):
    date = forms.DateField(label=u'日期')
    amount=forms.FloatField(label=u'金额')
    reason=forms.CharField(label=u'项目')
#    agent=forms.models.ModelChoiceField(Banfei_Log.agent)
    
    class Meta:
        model=Banfei_Log
        exclude=['op']
